import Mock from 'mockjs'

// 设置模拟数据返回时间
Mock.setup({
    timeout: '500-1000'
})

Mock.mock(
    "/user/userinfo",
    'get',
    () => {
        return {
            username: '酱紫',
            type: '帅！'
        }
    }
)

Mock.mock(
    /\account.*/, // 正则匹配
    'get',
    () => {
        return {
            username: '酱紫account',
            type: '帅-account'
        }
    }
)

Mock.mock('/user/student', 'get', () => {
    return {
        username: '大佬',
        age: 18,
        denger: '男'
    }
})